package com.shangs.platform.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author shangs
 * @since 2017-10-26
 */
@TableName("cms_vote_user")
public class CmsVoteUser extends Model<CmsVoteUser> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 投票ID
     */
	@TableField("vote_id")
	private Long voteId;
    /**
     * 用户ID
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 投票选项
     */
	@TableField("item_ids")
	private String itemIds;
    /**
     * IP
     */
	private String ip;
    /**
     * 创建日期
     */
	@TableField("create_date")
	private Date createDate;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getVoteId() {
		return voteId;
	}

	public void setVoteId(Long voteId) {
		this.voteId = voteId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getItemIds() {
		return itemIds;
	}

	public void setItemIds(String itemIds) {
		this.itemIds = itemIds;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CmsVoteUser{" +
			"id=" + id +
			", voteId=" + voteId +
			", userId=" + userId +
			", itemIds=" + itemIds +
			", ip=" + ip +
			", createDate=" + createDate +
			"}";
	}
}
